package com.laowang.project.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhMarkPriceMapper;
import com.laowang.project.system.domain.MyCyhMarkPrice;
import com.laowang.project.system.service.MyCyhMarkPriceService;

/**
 * 副牌价格Service业务层处理
 *
 * @author laowang
 * @date 2023-06-14
 */
@Service
public class MyCyhMarkPriceServiceImpl implements MyCyhMarkPriceService {
    @Autowired
    private MyCyhMarkPriceMapper myCyhMarkPriceMapper;

    /**
     * 查询副牌价格
     *
     * @param id 副牌价格ID
     * @return 副牌价格
     */
    @Override
    public MyCyhMarkPrice selectMyCyhMarkPriceById(Integer id) {
        return myCyhMarkPriceMapper.selectMyCyhMarkPriceById(id);
    }

    /**
     * 查询副牌价格列表
     *
     * @param myCyhMarkPrice 副牌价格
     * @return 副牌价格
     */
    @Override
    public List<MyCyhMarkPrice> selectMyCyhMarkPriceList(MyCyhMarkPrice myCyhMarkPrice) {
        return myCyhMarkPriceMapper.selectMyCyhMarkPriceList(myCyhMarkPrice);
    }

    /**
     * 新增副牌价格
     *
     * @param myCyhMarkPrice 副牌价格
     * @return 结果
     */
    @Override
    public int insertMyCyhMarkPrice(MyCyhMarkPrice myCyhMarkPrice) {
        return myCyhMarkPriceMapper.insertMyCyhMarkPrice(myCyhMarkPrice);
    }

    /**
     * 修改副牌价格
     *
     * @param myCyhMarkPrice 副牌价格
     * @return 结果
     */
    @Override
    public int updateMyCyhMarkPrice(MyCyhMarkPrice myCyhMarkPrice) {
        return myCyhMarkPriceMapper.updateMyCyhMarkPrice(myCyhMarkPrice);
    }

    /**
     * 批量删除副牌价格
     *
     * @param ids 需要删除的副牌价格ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhMarkPriceByIds(Integer[] ids) {
        return myCyhMarkPriceMapper.deleteMyCyhMarkPriceByIds(ids);
    }

    /**
     * 删除副牌价格信息
     *
     * @param id 副牌价格ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhMarkPriceById(Integer id) {
        return myCyhMarkPriceMapper.deleteMyCyhMarkPriceById(id);
    }

    @Override
    public MyCyhMarkPrice selectMyCyhMarkPriceByType(Integer type) {
        return myCyhMarkPriceMapper.selectMyCyhMarkPriceByType(type);
    }
}
